package com.thinking.exersises;

/**
 * Created by IntelliJ IDEA.
 * User: pvg
 * Date: 11/1/11
 * Time: 6:11 PM
 (3) Write a method that takes two String arguments and uses all the boolean
 comparisons to compare the two Strings and print the results. For the == and !=, also
 perform the equals( ) test.
 In main( ), call your method with some different String objects.
 */
public class Exersise14 {
    public static void compareTwoStrings(String string1, String string2) {
        System.out.println(string1 == string2 + "== comparison");
        System.out.println(string1.equals(string2) + " equals? comparison");

    }

    public static void main(String[] args) {
         compareTwoStrings("aa", "aa");
    }
}
